<?php

class MY_Cache_memcached extends CI_Cache_memcached {

    protected $prefix;

    public function __construct()
    {
        parent::__construct();
        $this->prefix = 'idea_';
    }

    public function save($id, $data, $ttl = NULL, $raw = FALSE)
    {
        $id = $this->prefix . $id;
        return parent::save($id, $data, $ttl, $raw);
    }

    public function get($id)
    {
        $id = $this->prefix . $id;
        return parent::get($id);
    }

    public function delete($id)
    {
        $id = $this->prefix . $id;
        return parent::delete($id);
    }
}
